package com.kalix.mooc.reply.entities;

import com.kalix.framework.core.api.persistence.PersistentEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 功能描述:
 *
 * @Description: 回复实体类
 * @Author: yyp
 * @CreateDate: 2019/5/22$ 09:31$
 * @Version:
 */
@Entity
@Table(name = "mooc_disreply")
public class ReplyBean extends PersistentEntity {
//    uid 回复人id  Did 留言id  parentid
    private Long discussId; // 留言id
    @Column(name = "replyEnclosure", columnDefinition = "text")
    private String replyEnclosure; //回复内容
    private Long userId; // 回复用户ID
    private String userName; // 回复用户姓名
    private Long touserId; // 留言人id
    private Long touserName; // 留言人姓名
    private Long parentId; //父ID
    private Long isLeaf;    //是否是子节点

    public Long getDiscussId() {
        return discussId;
    }

    public void setDiscussId(Long discussId) {
        this.discussId = discussId;
    }

    public String getReplyEnclosure() {
        return replyEnclosure;
    }

    public void setReplyEnclosure(String replyEnclosure) {
        this.replyEnclosure = replyEnclosure;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getTouserId() {
        return touserId;
    }

    public void setTouserId(Long touserId) {
        this.touserId = touserId;
    }

    public Long getTouserName() {
        return touserName;
    }

    public void setTouserName(Long touserName) {
        this.touserName = touserName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }


    public Long getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(Long isLeaf) {
        this.isLeaf = isLeaf;
    }
}
